package com.swjd.sbm.service.impl;

import com.swjd.sbm.dao.Api_syjpinglunMapper;
import com.swjd.sbm.dao.Api_syjthreadMapper;
import com.swjd.sbm.service.HotService;
import com.swjd.sbm.service.PinglunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class PinlunServicveImpl implements PinglunService {


    @Autowired
    private Api_syjpinglunMapper api_syjpinglunMapper;


    @Override
    public List<Map<String, Object>> getpinglun(int page, int pagesize,int tid) {
        return api_syjpinglunMapper.getpinglun(page,pagesize,tid);
    }

    @Override
    public int pagesize(int tid) {
        return api_syjpinglunMapper.pagesize(tid);
    }

    @Override
    public int addp(String id, String text,String date) {
        return api_syjpinglunMapper.addp(id, text, date);
    }
}
